<!DOCTYPE html>
<html>
<head>
<title>Mongo DB Demo</title>
</head>
<body>

<form action="getByName.amir" target="detail">
Enter Name: <input type="text" name="name" id="name">
<input type="submit" value="Get User XML"><br/>
<a href="getAllUser.amir" target="detail">Get All User XML</a><br/>
</form>

<form action="saveUser.amir" target="detail">
Id: <input type="text" name="id" id="id">
Name: <input type="text" name="name" id="name">
Address: <input type="text" name="address" id="address">
<input type="submit" value="Save User And Get User XML"><br/>
</form>

<form action="uploadImage.amir" method="post" enctype="multipart/form-data">
<table border="1">
<tr><td align="center" colspan="2"><h3>Upload Image</h3></td></tr>
<tr><td>Your Name:</td><td><input type="text" name="name" id="name" style=" width : 220px;"></td></tr>
<tr><td>Select Image:</td><td><input type="file" name="img" id="img"></td></tr>
<tr><td></td><td><input type="submit" value="Upload Image"></td></tr>
</table>
</form>

<a href="getImage.amir?name=mohdamirqr">SHOW Image for mohdamirqr</a>
</body>
</html>